Repository navigation
Conversation
kanstantsinbuklis-sap
force-pushed
the
kanstantsinbuklis-sap/issue-1302/create-local-infrastructure-for-scanner-testing
branch
from
November 4, 2026 14:25
f19e420 to
3ad2f07
Compare
kanstantsinbuklis-sap
marked this pull request as ready for review
November 4, 2026 14:27
kanstantsinbuklis-sap
requested review from
MR2011,
dorneanu,
drochow,
mdrkb,
michalkrzyz and
tsim-sap
as code owners
November 4, 2026 14:27
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved defects can corrupt recorded fixtures, prevent documented local scans from working, and break existing Helm upgrades through default ServiceAccount ownership conflicts.
4 open issues
What changed in this PR
Adds local infrastructure for testing the k8s-assets and keppel scanners against the Heureka backend without access to a remote cluster or registry, addressing issue #1302.
Changes:
- Adds kind cluster configuration and Makefile targets for setup, scanning, and teardown.
- Introduces a Keppel/Keystone mock with TLS, fixture overrides, recording mode, and fixture tests.
- Documents the local workflow and updates playground resources and response models.
| File | Description |
|---|---|
scanner/playground/k8s-playground/templates/serviceaccounts.yaml |
Adds default service accounts in playground namespaces. |
scanner/playground/k8s-playground/templates/serviceaccount.yaml |
Adjusts template whitespace trimming. |
scanner/keppel/models/models.go |
Adds manifest tags, pagination metadata, and JSON tags. |
scanner/keppel/mock/tlscert.go |
Generates an ephemeral self-signed certificate. |
scanner/keppel/mock/testdata/fixtures/.gitkeep |
Documents optional fixture overrides. |
scanner/keppel/mock/serve.go |
Starts mock HTTP and HTTPS listeners. |
scanner/keppel/mock/record.go |
Proxies upstream requests and records response fixtures. |
scanner/keppel/mock/main.go |
Adds mock configuration and mode selection. |
scanner/keppel/mock/keystone.go |
Emulates Keystone authentication and version discovery. |
scanner/keppel/mock/keppel.go |
Supplies canned registry and vulnerability responses. |
scanner/keppel/mock/fixtures.go |
Loads and writes fixture overrides. |
scanner/keppel/mock/fixtures_test.go |
Checks response serialization and fixture compatibility. |
scanner/keppel/go.mod |
Promotes trivy-db to a direct dependency. |
README.md |
Links to the local scanner guide. |
Makefile |
Adds local environment and scanner commands. |
local/kind/cluster.yaml |
Defines the single-node development cluster. |
local/kind/.gitignore |
Excludes the generated kubeconfig. |
go.sum |
Updates gRPC checksums. |
docs/local-environment.md |
Explains setup, scanning, recording, and teardown. |
Review effort: Balanced
Signed-off-by: Kanstantsin Buklis <kanstantsin.buklis@sap.com>
kanstantsinbuklis-sap
force-pushed
the
kanstantsinbuklis-sap/issue-1302/create-local-infrastructure-for-scanner-testing
branch
from
November 5, 2026 09:23
0787b62 to
8e6c8e5
Compare
…l-infrastructure-for-scanner-testing
…l-infrastructure-for-scanner-testing
MR2011
approved these changes
Nov 18, 2026
MR2011
deleted the
kanstantsinbuklis-sap/issue-1302/create-local-infrastructure-for-scanner-testing
branch
November 18, 2026 12:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Local infrastructure for scanners testing
What type of PR is this? (check all applicable)
Related Tickets & Documents
Added tests?
Added to documentation?